This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################## | |
################################################## | |
### datacenter : ofis | |
################################################## | |
################################################## | |
Datastore name: datastore1 (3) | |
Capacity: 550.2 GiB | |
Provisioned space: 241.0 GiB | |
Free space: 432.1 GiB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import atexit | |
from pyVmomi import vim, vmodl | |
from pyVim.connect import SmartConnect, Disconnect | |
import humanize | |
MBFACTOR = float(1 << 20) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 /Users/aliyaman/PycharmProjects/snmp/main.py | |
IF-MIB::ifNumber.0 = 7 | |
IF-MIB::ifIndex.1 = 1 | |
IF-MIB::ifIndex.2 = 2 | |
IF-MIB::ifIndex.3 = 3 | |
IF-MIB::ifIndex.4 = 4 | |
IF-MIB::ifIndex.5 = 5 | |
IF-MIB::ifIndex.6 = 6 | |
IF-MIB::ifIndex.7 = 7 | |
IF-MIB::ifDescr.1 = Device vmnic0 at 02:00.0 tg3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(0,) | |
(0, 0) | |
(1,) | |
(1, 3) | |
(1, 3, 6) | |
(1, 3, 6, 1) | |
(1, 3, 6, 1, 1) | |
(1, 3, 6, 1, 2) | |
(1, 3, 6, 1, 2, 1) | |
(1, 3, 6, 1, 2, 1, 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Çekilen Veriler | |
FIELDS = ["ifNumber", "ifIndex", "ifDescr", "ifType", "ifMtu", "ifSpeed", "ifPhysAddress", "ifAdminStatus", | |
"ifOperStatus", "ifLastChange", | |
"ifLastChange", "ifInOctets", "ifInUcastPkts", "ifInNUcastPkts", "ifInDiscards", "ifInErrors", "ifOutOctets", | |
"ifOutUcastPkts", | |
"ifOutNUcastPkts", "ifOutDiscards", "ifOutErrors", "ifOutQLen", "ifSpecific", "ifName", "ifInMulticastPkts", | |
"ifInBroadcastPkts", ] | |
# Başlangıç |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[0] 1.3.6.1.2.1.1.1. sysDescr | |
[1] 1.3.6.1.2.1.1.2. sysObjectID | |
[2] 1.3.6.1.2.1.1.3. sysUpTime | |
[3] 1.3.6.1.2.1.1.4. sysContact | |
[4] 1.3.6.1.2.1.1.5. sysName | |
[5] 1.3.6.1.2.1.1.6. sysLocation | |
[6] 1.3.6.1.2.1.1.7. sysServices | |
[7] 1.3.6.1.2.1.2.1. ifNumber | |
[8] 1.3.6.1.2.1.2.2.1.1. ifIndex | |
[9] 1.3.6.1.2.1.2.2.1.2. ifDescr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install --reinstall locales && sudo dpkg-reconfigure locales | |
nano ~/.bashrc | |
export LANG=tr_TR.UTF-8 | |
export LANGUAGE=tr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nano ~/.bash_profile | |
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
alias ls='ls -GFh' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add Environment Variables | |
SECRET_KEY=5(15ds+i2+%ik6z&!yer+ga9m=e%jcqiz_5wszg)r-z!2--b2d | |
DB_NAME=djangoproject | |
DB_USER=admin | |
DB_PASS=adminpass | |
DB_SERVICE=postgres | |
DB_PORT=5432 |