发布时间:2013-09-23 14:04:55
Ubuntu安装snmproot@ubuntu:/etc/snmp# sudo apt-get installsnmp snmpdroot@ubuntu:/etc/snmp# vim snmpd.conf root@ubuntu:/etc/snmp# /etc/init.d/snmpdrestartroot@ubuntu:/etc/snmp# snmpwalk -v 2c -c public localhost systemsystem:.........【阅读全文】
发布时间:2013-09-16 18:02:21
vimviews.pyfrom django.shortcuts importrender_to_responsefrom django.http import HttpResponsefrom django import forms from sshCMD.models import SerInfo import paramikoimport os,sysimport re class SerForm(forms.Form):  .........【阅读全文】
发布时间:2013-09-11 17:08:42
6 表单的应用from django.shortcuts importrender_to_responsefrom django.http import HttpResponsefrom django import forms 导入表单模块 from sshCMD.models import SerInfo import paramikoim.........【阅读全文】
发布时间:2013-09-11 17:06:09
5.djangoADMIN 的启用5.1 激活管理页面root@ubuntu:/opt/serManager/serManager#vim settings.pyINSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', .........【阅读全文】
发布时间:2013-09-11 17:02:39
4.数据库表的创建 数据插入 管理4.1 创建表root@ubuntu:/opt/serManager/sshCMD#vim models.pyfrom django.db import models class SerInfo(models.Model): gid =models.IntegerField() user =models.CharField(max_length=30).........【阅读全文】