Download Tycho GPS Frequency Reference User Manual

Transcript
APPENDIX C
TYCHO-MIB
Which is located on your Tycho in this ASCII file:
/usr/local/share/snmp/mibs/TYCHO-MIB.txt
In addition to a complete set of GPS status objects, the MIB defines two SMIv2 notification objects:
• GPS Fault Status change
• GPS Time Figure of Merit change
Invocation of the
SNMP daemon
The SNMP daemon, snmpd is started from the /etc/rc.d/rc.local system start-up script with this line:
snmpd -m “MIBNAME” -Ls -d -c /etc/snmpd.conf
By default, it will listen on port 161 for SNMP queries from the network management system. If
you would like to have it listen on another port, you could edit the file by adding -p port to the
end of this line, where port is the number of the port you would like for the agent to listen on. If
you would like to disable starting of the snmpd daemon altogether, you can either remove this line
or place a # character at the beginning of the line so that it will not be executed. (A very compact
editor with WordStar command keystrokes is available on the system for this purpose: edit. If you
start edit without giving it a file name to open, it will display its help screen, showing the supported
keystrokes.)
IMPORTANT
After editing /etc/rc.d/rc.local, you must copy it to the /boot/etc/rc.d directory and re-boot the system.
It is very important to retain the access mode for the file, so be sure to use cp -p when performing the
copy. During the boot process, the files contained in the /boot/etc/rc.d directory are copied to the working /etc/rc.d directory on the system RAM disk. In this way the factory defaults are overwritten.
Quick Start Configuration
-- SNMPv1/v2c
You should be able to compile the TYCHO-MIB file on your SNMP management system and access the variables defined therein. The factory default community names are “TychoGPS” for the
read-only community and “endrun_1” for the read-write community. This is all that is required for
operation under v1 and v2c of SNMP. You can, and should, change the default community names by
editing /etc/snmpd.conf and modifying these two lines:
rwcommunity
endrun_1
rocommunity TychoGPS
46
Ty c h o G P S U s e r M a n u a l