martes, 10 de octubre de 2017

CISCO. How to access a switch with limited permissions



I explain how to create one user to acces to switch with limited permitions, for example for create one network opertator or Help desk user.



Configure Switch. Commands:

aaa new-model
aaa authentication login default local
aaa authorization exec default local

privilege interface level 10 duplex
privilege interface level 10 speed
privilege interface level 10 shutdown
privilege interface all level 10 switchport
privilege interface level 10 description
privilege interface level 10 no duplex
privilege interface level 10 no speed
privilege interface level 10 no shutdown
privilege interface all level 10 no switchport
privilege interface level 10 no description
privilege interface level 10 no
privilege configure level 10 interface
privilege exec level 10 configure terminal
privilege exec level 10 configure
privilege exec level 10 show mac
privilege exec level 10 show arp
privilege exec level 10 show running-config interface
privilege exec level 10 show logging
privilege exec level 10 show interfaces

privilege exec level 10 show

Configure User. Asign user privileges. Commands:

(config)# username NOMBRE privilege 10      
   

With this configuration the user Jxxxx can to access to privilege 10 and lower

Other example. Commands:

username gontest privilege 5 password gontest
privilege exec level 4 show running-config view full


Check at 2960/ 3780 SW 
by GoN | Published: October 10, 2017 | Last Updated: 

jueves, 21 de septiembre de 2017

WINDOWS. PS. Easy uptade computer attributes.

I explain a simple and quicly script to update AD attributes. At this example update the "location" atribute from AD computers.



[ ] File: UpdatePC.PS1

Import-Module ActiveDirectory
$Delimiter = "," 
$PCs = Import-csv C:\Script\UpdateADattributes\PCs.csv -Delimiter $Delimiter
ForEach($Computer In $PCs)
{
    Set-ADComputer -Identity $Computer.Name -Location $Computer.NewLocation -Confirm:$false
}


[ ] File: PCs.csv

Name,NewLocation
XXXX1445,UnLugar54xx
XXXX047,UnLugar56xx


[ ] Check

Command: get-adcomputer w1001445 -properties * | Select name, location





Check at Windows 2012 R2
by GoN | Published: September 21, 2017 | Last Updated: October 3, 2017

martes, 19 de septiembre de 2017

NAGIOS. Logo

For change the Nagios logo to other picture, there are a lot of ways, this is one method:

[ ] In Nagios Core Version 4.2.4 save your logo in /usr/local/nagios/share/images/sblogo.png file

Before:

Later:

[ ] In Nagios XI. One option for custom logo component is navigate to Admin > Manage Components > Custom Logo. 


Fill the new file logo in "Logo Image:"


Later:



Check at Nagios
by GoN | Published: September 19, 2017 | Last Updated: