XCP - Create Local ISO storage

mkdir -p /var/opt/xen/ISO_Store
xe sr-create name-label=LocalISO type=iso device-config:location=/var/opt/xen/ISO_Store device-config:legacy_mode=true content-type=iso
xe sr-scan uuid=UUID

 

https://umhau.github.io/create-local-ISO-repository-on-xcp-ng/

https://thuanbui.me/category/systems-infrastructure/virtualization/

Đọc thêm..

Git create - delete - clear

Create, Commit, Push to remote:

 echo "# Device Configs Linh Trung" > README.md

git add .

git commit -m "Initial commit"

git push -u origin master


Delete multi file:

delete multi file: git rm $(git ls-files --deleted)


Clear version git:

git checkout --orphan temp_branch

git add -A

git commit -am "Purging Old History"

git branch -D master

git branch -m master

OR:

git pull --rebase

git reflog expire --expire=now --all

OR:

git fetch --prune

git prune

git gc


git push -f origin master


Đọc thêm..

Git Add Exam:

Git Add Exam: 

echo "# Device Configs Linh Trung" > README.md

git add .

git commit -m "Initial commit"

git push -u origin master


Create Git local:

git init
git add README.md
git add .
git commit -m "first commit"
git remote add origin https://github.com/userName/repoName.git
git push --force origin master
 
echo "# services" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/databom/services.git
git push -u origin main 
Đọc thêm..

How to solve this problem of "! [rejected] master -> master (fetch first)"

How to solve this problem of "! [rejected] master -> master (fetch first)"
First Do this ...
git fetch origin master
git merge master
Then, do this ...
git fetch origin master:tmp
git rebase tmp
git push origin HEAD:master
git branch -D tmp
Now everything works well.


OR:

git fetch origin master:tmp
git rebase tmp
git push origin HEAD:master
git branch -D tmp
Error: Message 'src refspec master does not match any' when pushing commits in Git
git init
git add .
git commit -m 'message'
git *create remote
git push -u origin master
OR
git checkout -b master
git add .
git commit -m "my commit message"
git push origin master
Đọc thêm..

Aruba config SNMP

6200(config)# snmp-server vrf default
6200(config)# snmp-server vrf mgmt
6200(config)# snmp-server system-contact netadmin@hcmus.edu.vn
6200(config)# snmp-server system-description Aruba-6200-NDH
6200(config)# snmp-server system-location Aruba-6200-NDH
6200(config)# snmp-server community CSLT@hcmus
6200(config-community)# access-level ro

Đọc thêm..

Aruba deny-local-routing

 

deny-local-routing

deny-local-routing

no…

Description

This command disables routing traffic between two clients of an IAP on different VLANs. Routing traffic between the clients will be sent to the upstream device to make the forwarding decision.

 

Usage Guidelines

Use this command to prevent the local routing of traffic if you have security and traffic management policies defined for upstream devices.

Example

The following command disables local routing:

(Instant Access Point)(config)# deny-local-routing

(Instant Access Point)(config)# end

(Instant Access Point)# commit apply

 

 

https://www.arubanetworks.com/techdocs/Instant_40_Mobile/Advanced/Content/CLI_commands/deny-local-routing.htm

 

Đọc thêm..

Restricting access to an Aruba switch GUI and CMD via VLAN router IP

 Restricting access to an Aruba switch GUI  and CMD via VLAN router IP

Exam: 

- Allow all 10.29.3.0/24 , 10.29.4.0/24, 10.29.5.0/24 

- Allow all icmp

- Deny all

access-list ip quantriswitch
20 permit any 10.29.5.0/255.255.255.0 any
21 permit any 10.29.4.0/255.255.255.0 any
22 permit tcp 10.29.3.0/255.255.255.0 any
23 permit icmp any any
90 deny any any any
apply access-list ip quantriswitch control-plane vrf default

 

https://community.arubanetworks.com/discussion/cx6000-restricting-access-to-management-ip-of-switch

Đọc thêm..

Printer - Scanner on Arch Linux

 

- Instal Printer Driver HP on arch linux:

 sudo pacman -S cups

systemctl enable cups && systemctl start cups

sudo pacman -S  system-config-printer

sudo pacman -S hplip-plugin

yay -S hpuld

- Config Printer

sudo hp-setup -i <IP Printer>

- Install scanner:

sudo pacman -S sane
yay -S xsane

 - Config print pdf file to printer

lpadmin -p <Printer_name> -o pdftops-renderer-default=pdftops

- Printer manager over web:

https://localhost:631 

user/pass is on system

 

Đọc thêm..