View list
SNMP uses information defined in the Management Information Base (MIB) files to manage and monitor your network devices. Within the MIB file, a hierarchical namespace containing Object Identifiers (OIDs) organizes the information about a device. View lists give you granular control over which Management Information Base (MIB) objects your SNMP users can access.
The View list tab shows the name, subtree OID and mask, and view type for all view lists on the switch.
To add a new view list, do as follows:
- Go to Configure > SNMP > View list.
- Click Add.
-
Configure the following settings:
- View Name: Enter a name. It must be from 1 to 20 characters and can't include
"
,\
,%
,&
,?
,'
,!
,;
,|
,+
, or spaces. - Subtree OID: Enter the OID. The OID is a unique string identifying an object in the MIB that an SNMP manager will include or exclude from access. See OID or check your vendor documentation.
- Subtree Mask: The Subtree Mask is an integer between 1 and 20 that identifies groups of related objects within the MIB. The number identifies the level at which the SNMP manager applies the mask. For example, a Subtree Mask of 5 only applies to objects at the fifth level of the MIB tree.
- View Type: Select which OID branch within the MIB tree will be Included or Excluded from the selected SNMP view. If you mark an entry as Excluded, we recommend creating another Included entry with the OID subtree overlapping the Excluded entry.
- View Name: Enter a name. It must be from 1 to 20 characters and can't include
-
Click Apply.
To edit a view list, click Edit on the one whose settings you want to change.
To delete a view list, click Delete on the one you want to remove.
MIB
MIBs are a reference for SNMP managers and are essentially databases of organized information about SNMP devices. The Sophos Switch MIB files are available from Sophos Central. To download the Sophos Switch MIB files, do as follows:
- Sign in to Sophos Central.
- Go to Devices > Installers.
- Under Switches, click Download SNMP MIB files to download an archive containing MIB files for all Sophos Switch models.
- Save the archive to a location of your choice.
- Extract the MIB files from the archive.
OID
Every OID identifies a variable that can be read or set through SNMP. There's a large list of public parameters, and vendors often provide specific hardware parameters.
Public OIDs
OIDs allow you to check your network devices' general settings, status, and information. There are many shared or public OIDs that you can use to monitor your switch. The following table shows some frequently used SNMP parameters and their OIDs, with X
being the placeholder for a specific port number.
SNMP parameter | OID |
---|---|
System uptime | 1.3.6.1.2.1.1.3.0 |
Port link status | 1.3.6.1.2.1.2.2.1.8.X |
Port description | 1.3.6.1.2.1.2.2.1.2.X |
Temperature | 1.3.6.1.2.1.99.1.1.1.4.4 |
Firmware version | 1.3.6.1.2.1.47.1.1.1.1.9.1 |
Port speed | 1.3.6.1.2.1.2.2.1.5.X |
Port auto-negotiation | 1.3.6.1.2.1.26.5.1.1.1.X.1 |
Port duplex | 1.3.6.1.2.1.10.7.2.1.19.X |
Port rx counter | 1.3.6.1.2.1.2.2.1.10.X |
Port tx Counter | 1.3.6.1.2.1.2.2.1.16.X |
Model name | 1.3.6.1.2.1.47.1.1.1.1.13.1 |
Switch name/System name | 1.3.6.1.2.1.1.5.0 |
IP address | 1.3.6.1.2.1.4.20.1.1 |
Serial number | 1.3.6.1.2.1.47.1.1.1.1.11.1 |
System MAC address | 1.3.6.1.2.1.2.2.1.6.61 |
Nominal PSE power in Watts | 1.3.6.1.2.1.105.1.3.1.1.2.1 |
Measured usage power in Watts | 1.3.6.1.2.1.105.1.3.1.1.4.1 |
Sophos OIDs
The Sophos MIB files contain OIDs specific to Sophos Switch. Each Sophos Switch model has a unique value in the MIB that you'll need for some OIDs. The value is a two-digit number and is always preceded by 2604.6.1.
. The following table shows the unique values for each model.
Model | Value |
---|---|
CS101-8 | 41 |
CS101-8FP | 44 |
CS210-8FP | 27 |
CS1010-8FP | 29 |
CS110-24 | 20 |
CS110-24FP | 14 |
CS210-24FP | 53 |
CS110-48 | 16 |
CS110-48P | 43 |
CS110-48FP | 18 |
CS210-48FP | 54 |
Example
The following text is taken from the CS110-24_MIB.mib
file.
::= { enterprises 2604 }
switch OBJECT IDENTIFIER ::={Sophos 6 }
profileA OBJECT IDENTIFIER ::={switch 1 }
swCS110-24 OBJECT IDENTIFIER ::={profileA 20 }
You can also find some private OIDs in the downloaded MIB files. You can use these OIDs to monitor and manage your specific Sophos Switch models by inserting their unique values into the OID. The following table shows examples of Sophos-specific OIDs in the MIB files, with X
being the placeholder for your Sophos Switch model's unique value.
SNMP parameter | OID |
---|---|
System features | 1.3.6.1.4.1.2604.6.1.X.2 |
Port | 1.3.6.1.4.1.2604.6.1.X.3 |
L2 features | 1.3.6.1.4.1.2604.6.1.X.4 |
DHCP | 1.3.6.1.4.1.2604.6.1.X.6 |
VLAN | 1.3.6.1.4.1.2604.6.1.X.7 |
L3 features | 1.3.6.1.4.1.2604.6.1.X.8 |
Security | 1.3.6.1.4.1.2604.6.1.X.13 |
Management | 1.3.6.1.4.1.2604.6.1.X.15 |
Examples
Here are some examples of how to use SNMP with specific Sophos Switch models.
CS110-48P CPU usage
The following command returns the memory usage for a CS110-48P as a percentage:
snmpget -v 2c -c public 10.169.36.18 1.3.6.1.4.1.2604.6.1.43.99.1.1.69.0
The command returns a string similar to the following example:
iso.3.6.1.4.1.2604.6.1.43.99.1.1.69.0 = STRING: "1.98"
CS1010-8FP CPU usage
The following command returns the memory usage for a CS1010-8FP as a percentage:
snmpget -v 2c -c public 172.16.16.246 1.3.6.1.4.1.2604.6.1.29.99.1.1.69.0
The command returns a string similar to the following example:
SNMPv2-SMI::enterprises.2604.6.1.29.99.1.1.69.0 = STRING: "18.4"
CS110-48P memory usage
The following command returns the memory usage for a CS110-48P as a percentage:
snmpget -v 2c -c public 10.169.36.18 1.3.6.1.4.1.2604.6.1.43.99.1.1.73.0
The command returns a string similar to the following example:
so.3.6.1.4.1.2604.6.1.43.99.1.1.73.0 = INTEGER: 53
CS1010-8FP memory usage
The following command returns the memory usage for a CS1010-8FP as a percentage:
snmpget -v 2c -c public 172.16.16.246 1.3.6.1.4.1.2604.6.1.29.99.1.1.73.0
The command returns a string similar to the following example:
SNMPv2-SMI::enterprises.2604.6.1.29.99.1.1.73.0 = INTEGER: 52
CS110-24FP serial number
The following command returns the serial number for a CS110-24FP:
snmpget -v 2c -c public 172.16.16.240 1.3.6.1.2.1.47.1.1.1.1.11.1
The command returns a string similar to the following example:
SNMPv2-SMI::mib-2.47.1.1.1.1.11.1 = STRING: "W12345ABCDEF678"