Python for unix and linux system administration by Noah Gift & Jeremy M. Jones
Author:Noah Gift & Jeremy M. Jones [Noah Gift & Jeremy M. Jones]
Language: eng
Format: epub
Tags: Sciences
ISBN: 9780596158781
Published: 2009-06-29T23:00:00+00:00
In order for our query to work in the first place, we needed to tell snmpd.conf about this script, and here is what that section looks like:
syslocation "O'Reilly" syscontact [email protected] rocommunity public exec helloworld /usr/bin/python -c "print 'hello world from Python'" exec .1.3.6.1.4.1.2021.28664.100 FirefoxHits /usr/bin/python /opt/local/snmp_scripts/agent_ext_logs.py
The magic portion is the last line, in which .1.3.6.1.4.1.2021 is the ucdavis enterprise number, 28664 our enterprise number, and 100 is some contrived value that we decided we wanted to use. It is really important to follow best practices and use your our enterprise number if you plan on extending SNMP. The main reason is that you will avoid causing havoc if you decide to use a range already occupied by someone else and then make changes via snmpset.
We would like to close with the fact that this is one of the more exciting topics in the book, and SNMP is still a very untouched playground. There are many things that customizing Net-SNMP can be useful for, and if you are careful to use SNMP v3, you can do some incredible things that are most easily accomplished through the SNMP protocol; and that ssh or sockets would be the most natural choice.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
AIX | Administration |
DNS & Bind | Shell |
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7741)
Filmora Efficient Editing by Alexander Zacharias(5450)
The Infinite Retina by Robert Scoble Irena Cronin(4896)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3905)
Learn Wireshark - Fundamentals of Wireshark. by Lisa Bock(3787)
Edit Like a Pro with iMovie by Regit(3241)
Linux Administration Best Practices by Scott Alan Miller(2843)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic & Jasmin Redzepagic(2819)
MCSA Windows Server 2016 Study Guide: Exam 70-740 by William Panek(2508)
Docker on Windows by Stoneman Elton(2307)
Kali Linux - An Ethical Hacker's Cookbook: End-to-end penetration testing solutions by Sharma Himanshu(2296)
Mastering PowerShell Scripting - Fourth Edition by Chris Dent(2218)
Hands-On AWS Penetration Testing with Kali Linux by Karl Gilbert(2095)
Creative Projects for Rust Programmers by Carlo Milanesi(2045)
Hands-On Linux for Architects by Denis Salamanca(2030)
Computers For Seniors For Dummies by Nancy C. Muir(1984)
Programming in C (4th Edition) (Developer's Library) by Stephen G. Kochan(1974)
The Old New Thing by Raymond Chen(1928)
Linux Kernel Debugging by Kaiwan N Billimoria(1753)
